import request from '@/utils/request.js'; // 封装的request.js文件的位置
// 司法局查看备案文书列表
export const getDocumentList = (data)=>{
	return request({
		url:`/business/justice/list`,
		method:"GET",
		data
	})
}
// 行政机关查看待反馈信息提醒
export const getPendingFeedbackReminder = ()=>{
	return request({
		url:`/business/adminiFeedback/getPendingFeedbackReminder`,
		method:"GET",
	})
}
// 行政机关补充资料
export const toAddFillData = (data)=>{
	return request({
		url:`/business/adminiFeedback/addSupplementaryMaterials`,
		method:"POST",
		data
	})
}
// 获取反馈领域列表
export const getFeedbackFieldList = ()=>{
	return request({
		url:`/business/adminiFeedback/getFeedbackFieldList`,
		method:"GET",
	})
}
//获取反馈领域详细数据
export const getFeedbackFieldData = (data)=>{
	return request({
		url:`/business/adminiFeedback/getFeedbackFieldData`,
		method:"GET",
		data
	})
}
// 保存填写完成的反馈数据
export const addFeedbackFieldData = (data)=>{
	return request({
		url:`/business/adminiFeedback/addFeedbackFieldData`,
		method:"POST",
		data
	})
}
// 获取已填写的反馈数据
export const alreadyFeedbackData = (data)=>{
	return request({
		url:`/business/adminiFeedback/getFieldComplete`,
		method:"GET",
		data
	})
}
// 获取反馈详情数据
export const getFeedbackFieldDetails = (data)=>{
	return request({
		url:`/business/adminiFeedback/getFeedbackFieldDetails`,
		method:"GET",
		data
	})
}
// 填写查看反馈的其他描述
export const addFeedbackData = (data)=>{
	return request({
		url:`/business/adminiFeedback/addFeedbackData`,
		method:"POST",
		data
	})
}
// 获取补充材料
export const getSupplementaryDetails = (data)=>{
	return request({
		url:`/business/adminiFeedback/getSupplementaryDetails`,
		method:"GET",
		data
	})
}
// 行政机关阅读完成
export const readComplete = ({deliveryId})=>{
	return request({
		url:`/business/adminiFeedback/readComplete?deliveryId=${deliveryId}`,
		method:"POST"
	})
}
// 签名存储
export const signStorage = (deliveryId,data)=>{
	return request({
		url:`/business/adminiFeedback/signStorage?deliveryId=${deliveryId}`,
		method:"POST",
		data
	})
}
// 获取备案查看记录
export const seeDocumentRecord = (data)=>{
	return request({
		url:`/business/justice/listViewRecord`,
		method:"GET",
		data
	})
}
// 司法局全部已阅文书
export const viewDocument = (data)=>{
	return request({
		url:`/business/justice/viewDocument`,
		method:"GET",
		data
	})
}
// 文件阅读接口
export const fileRead = ({deliveryId,deliveryFileId})=>{
	return request({
		url:`/business/adminiFeedback/fileRead?deliveryId=${deliveryId}&deliveryFileId=${deliveryFileId}`,
		method:"POST",
	})
}
// 司法局查阅文件
export const fileScan = ({deliveryId,deliveryFileId})=>{
	return request({
		url:`/business/justice/fileScan?deliveryId=${deliveryId}&deliveryFileId=${deliveryFileId}`,
		method:"POST",
	})
}
// 添加司法局查看记录
export const addViewRecord = ({id,deliveryFileId})=>{
	return request({
		url:`/business/justice/addViewRecord?id=${id}&deliveryFileId=${deliveryFileId}`,
		method:"POST",
	})
}
// 查看反馈详情deliveryId
export const getFeedbackDetails = (data)=>{
	return request({
		url:`/business/adminiFeedback/getFeedbackDetails`,
		method:"GET",
		data
	})
}